from urllib.request import urlopen
import re

# if has Chinese, apply decode()
html = urlopen(
    'https://mofanpy.com/static/scraping/basic-structure.html'
).read().decode('utf-8')

res = re.findall(r'<title>(.+?)</title>', html)
print('\nPage title is :', res[0])

res = re.findall(r'<p>(.*?)</p>', html, flags=re.DOTALL)
print('\nPage parapraph is: ', res[0])

res = re.findall(r'href="(.*?)"', html)
print('\nAll links: ', res)